import matplotlib.pyplot as plt
score=[107,77,94,87,90,95,45,69,32,14,54,65,98,77,88,99,66,11,22,33,44,55,65,96,74,71,123,456,789,788,741,852,963,369,258,174]
plt.rcParams['font.sans-serif']=['SimHei']
plt.xlabel('分数')
plt.ylabel('学生数量')
plt.title('学生语文成绩分布直方图')
plt.hist(score,bins=range(0,150,10),facecolor='red',edgecolor='black')
plt.show()